package 笔试.小米;

import java.io.FileFilter;
import java.util.Arrays;
import java.util.Scanner;

/**
 * @author:谢君臣
 * @Date:2021/9/8-19:52
 * @version:1.0
 * @function:
 */
public class Main02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] split = scanner.nextLine().split(" ");
        int a =0 ,b=0,c=0;
        for (int i = 0; i < split.length; i++) {
            if (split[i].equals("1"))a++;
            if (split[i].equals("2"))b++;
            if (split[i].equals("3"))c++;
        }
        for (int i = 0; i < a; i++) {
            System.out.print(1+" ");
        }
        for (int i = 0; i < b; i++) {
            System.out.print(2+" ");
        }
        for (int i = 0; i < c; i++) {
            System.out.print(3+" ");
        }
        System.out.println();

    }
}
